<?php
/* @var $model Invoice */



<?php if ($model->getSalesOrders()!=NULL): ?>
    <li><a  class="view-button" href="index.php?r=invoices/update&invoice=<?= $model->getSalesOrders()->invoice ?>">View Sales Order</a></li>

    <?php endif ?>

       <?php if($model->jobnumber!=null){
                   echo '<li>';
                   echo CHtml::link('Go to Job',array('/jobs/update','jobid'=>$model->jobnumber),array('class'=>'return-button')); 
                   echo '</li>';
                }?>
       <br/><h5 style="padding-left:11px;"> Delivery</h5>
<li><a class="print-button" target="_blank" onclick="printSelect({link:'index.php?r=pdf&invno=<?= $model->invoice ?>',newtab:true})" >View/Print</a>

